def get_breadcrumb(cat3):
    # 封装面包
    cat2 = cat3.parent
    cat1 = cat2.parent
    breadcumb = {
        'cat1':{
            'id':cat1.id,
            'name':cat1.name,
            'url':cat1.goodschannel_set.all()[0].url,
        },
        'cat2':cat2,
        'cat3':cat3,

    }
    return breadcumb